#include "Tools.h"

DWORD Tools::WC2C(size_t* _PtNumOfCharConverted, char* _Dst, size_t _DstSizeInBytes, const wchar_t* _Src, size_t _MaxCountInBytes)
{
	return wcstombs_s(_PtNumOfCharConverted, _Dst, _DstSizeInBytes, _Src, _MaxCountInBytes);
}

DWORD Tools::C2WC(size_t* _PtNumOfCharConverted, wchar_t* _DstBuf, size_t _SizeInWords, const char* _SrcBuf, size_t _MaxCount)
{
	return mbstowcs_s(_PtNumOfCharConverted, _DstBuf, _SizeInWords, _SrcBuf, _MaxCount);
}
